<html>

	<head>
		
		<title>Projet L3</title>
		
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		
		<link rel="stylesheet" type="text/css" media="screen" href="/GJO2M/style.css" />
		
	</head>

<%@page import="control.bd.table.User" %>
<%@page import="control.bd.requete.Requetes" %>
<%@page import="control.bd.table.User" %>
<%@page import="control.bd.requete.Requetes" %>
<%@page import="java.util.List" %>
<%@page import="modele.Produit" %>

		<body>

			<div id="siteLock">
			
				<div id="header"> 
			
					<h2><a href="./" title="Accueil">Bienvenue !</a></h2>
				
					<ul id="try"> 
						
						<li><a href="/GJO2M/Client/fin.jsp">Categorie 1</a></li>
						
						<li><a href="#">Categorie 2</a></li> 
						
						<li><a href="#">Categorie 3</a></li> 
						
						<li><a href="#">Categorie 4</a></li> 
						
					</ul>
				
					<div id="try1">
					
						<%

						if(request.getAttribute("users") != null){
							
							List<User> users = (List<User>)request.getAttribute("users");
							
							for(User user : users){
								
								out.print("Bienvenue "+user.getPrenom()+" !");
								
							}
							
						}

						%>
							
						<br/>	<form action="/GJO2M/control/servlet/compte/RechercheCompte" method="get">
												
								<input type="submit" value="Mon compte"></input>
								
			</form>				
							
						<br/><a href="/GJO2M/Panier/personnaliser.jsp">Personnaliser mon compte</a>
						
						<br/><a href="/GJO2M/Panier/panier.jsp">Mon panier : 0 </a>
						
						<li>
					
							<form action="/GJO2M/control/servlet/deconnexion/DeconnexionServlet" method="get">
												
								<input type="submit" value="Se deconnecter"></input>
								
							</form>
							
						</li> 
					
					</div> 
	
				</div>
			
			<div id="block">
			
						<div id="textos"> 
			
				<table align="center" border="1">

					<p >Information sur mon compte<a href="/GJO2M/Panier/ModifierCompte.jsp" title="/GJO2M/images/modifier.png"><img src="/GJO2M/images/modifier.png" alt="tonimage" border="0" width="30" height="30"></a></p>
  
  						<tr>
  						
							 <td> Nom </td>
							 
 							<td class="introduction">
 							
 								<% 
 								
									if(request.getAttribute("users") != null){
										
										List<User> users = (List<User>)request.getAttribute("users");
										
										for(User user : users){
											
											out.print("<h1>"+user.getNom()+"</h1>");
											
										}
										
									}
					
								%> 
								
							</td>
							
 						 </tr>
 						 
 						 <tr>
 						 
						 	<td> Prenom </td>
							 
							<td class="introduction">		
 									
								<% 
 															
									if(request.getAttribute("users") != null){
						
										List<User> users = (List<User>)request.getAttribute("users");
						
										for(User user : users){
							
											out.print("<h1>"+user.getPrenom()+"</h1>");
							
										}
						
									}
					
								%> 
									
							</td>
								
 						 </tr>
 						 
 						  						 <tr>
 						 
						 	<td> Adresse</td>
							 
							<td class="introduction">		
 									
								<% 
 															
									if(request.getAttribute("users") != null){
						
										List<User> users = (List<User>)request.getAttribute("users");
						
										for(User user : users){
							
											out.print("<h1>"+user.getAdresse()+"</h1>");
							
										}
						
									}
					
								%> 
									
							</td>
								
 						 </tr>
 						 
 						 <tr>
 						 
						 	<td> Adresse mail</td>
							 
							<td class="introduction">		
 									
								<% 
 															
									if(request.getAttribute("users") != null){
						
										List<User> users = (List<User>)request.getAttribute("users");
						
										for(User user : users){
							
											out.print("<h1>"+user.getEmail()+"</h1>");
							
										}
						
									}
					
								%> 
									
							</td>
								
 						 </tr>
 						 
						 	<td> Telephone</td>
							 
							<td class="introduction">		
 									
								<% 
 															
									if(request.getAttribute("users") != null){
						
										List<User> users = (List<User>)request.getAttribute("users");
						
										for(User user : users){
							
											out.print("<h1>"+user.getTel()+"</h1>");
							
										}
						
									}
					
								%> 
									
							</td>
								
 						 </tr>

					 </table>
					 </div>
                     <div id="footer">
                                
                     	<ul id="try2"> 
                       
                       		<li><a href="/GJO2M/Pied/projet.jsp">Projet 2012</a></li>
                       		
                            <li><a href="/GJO2M/Pied/QuiSommesNous.jsp">Qui sommes-nous?</a></li> 
                                                
                            <li><a href="#">Mode administrateur</a></li> 
                                                
                            <li><a href="/GJO2M/Pied/NousContacter.jsp">Nous contacter</a></li> 
                            
                       	</ul>
                                        
                   	</div>
                                
               	</div>
        
        	</div>
                
        </body>
                        
</html>